<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdvLocationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('adv_location', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('广告位名称');
            $table->bigInteger('width')->nullable()->comment('广告位宽度');
            $table->bigInteger('height')->nullable()->comment('广告位高度');
            $table->text('description')->nullable()->comment('广告位置描述');
            $table->text('code')->nullable()->comment('广告模板代码');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('adv_location');
    }
}
